﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace ProgramacionRedes {
    public partial class FrmInputBox : Form {
        TextBox valor;
        public FrmInputBox(string texto, string titulo, TextBox valor) {
            InitializeComponent();
            this.valor = valor;
            label1.Text = texto;
            this.Text = titulo;
        }

        private void btn_Cancelar_Click(object sender, EventArgs e) {
            valor.Text = "";
            this.Close();
        }

        private void btn_Aceptar_Click(object sender, EventArgs e) {
            valor.Text = textBox1.Text;
            this.Close();
        }
    }
}
